#pragma once
#include <osg/Camera>

class UniformNearFarUpdateCallback : public osg::Uniform::Callback
{
public:
	UniformNearFarUpdateCallback() = delete;
	UniformNearFarUpdateCallback(osg::Camera * camera);
	virtual void operator()(osg::Uniform* uniform, osg::NodeVisitor* nv);

private:
	osg::Camera * mCamera;
	bool m_bFirstTime;
};